package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.PrizeDrawActivityTypeEnum;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;

/**
 * 签到活动奖励配置表
 * @TableName sc_reward_allocation
 */
@TableName(value ="sc_reward_allocation")
@Data
@ApiModel(value = "sc_reward_allocation 对象", description = "")
public class RewardAllocation extends SuperEntity implements Serializable {

    /**
     * 签到活动Id
     */
    private Long activityBasicsId;

    /**
     * 签到天数
     */
    private Integer signInDay;

    /**
     * 奖励领取上限
     */
    private Integer receiveLimit;

    /**
     * 签到活动类型（3:连续签到 4:累计签到）
     */
    private PrizeDrawActivityTypeEnum signInType;

    public void setSignInType(Integer singnInType){
        this.signInType = PrizeDrawActivityTypeEnum.getByCode(singnInType);
    }

}